# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>

pkgname=libpagemaker
pkgver=0.0.3
pkgrel=1
pkgdesc="a library that parses the file format of Aldus/Adobe PageMaker documents"
arch=('i686' 'x86_64')
url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker"
license=('MPL')
source=(https://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${pkgver}.tar.xz)
depends=('librevenge')
makedepends=('boost')
sha256sums=('d896dc55dafd84ee3441e0ca497b810809f9eea44805a495c3843412309036d6')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

check() {
  cd ${pkgname}-${pkgver}
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

